import { DvaLoadingState } from 'dva-loading-ts';
import home from './home';
import category from './category';
import album from './album'
import player from './player';
import found from './found';
import user from './user';
import subscription from './subscription'

const models = [home, category, album, player, found, user, subscription];

export type RootState = {
    home: typeof home.state
    category: typeof category.state;
    album: typeof album.state;
    player: typeof player.state;
    user: typeof user.state;
    loading: DvaLoadingState;
    found: typeof found.state
    subscription: typeof subscription.state
} & {
    [key: string]: typeof home.state;
}

export default models